#pragma once

#include <openssl/ssl.h>
#include <openssl/crypto.h>
#include <event2/bufferevent_ssl.h>

class SSLCtxHolder{
public:

    static bool init(const char* cert, const char* key);
    
    static void destroy();
    
    static SSL_CTX* get();
private:
    static SSL_CTX* SSL_CTX_;
};